package com.lq.ecoldchain.ui.withdraw

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/6 0006  15:47
*function by lq
*/
val withdrawKodeinModule = Kodein.Module("Withdraw_Kodein_Module"){
   bind<WithdrawViewModel>() with scoped(AndroidLifecycleScope).singleton {
       WithdrawViewModel()
   }
    bind<WithdrawDelegate>() with scoped(AndroidLifecycleScope).singleton {
        WithdrawDelegate(instance())
    }
}